import requests

from utils.log_setting import logger


class BaseApi:
    def __init__(self):
        pass

    # 封装请求
    def send(self,**kwargs):
        # 打印输入的参数
        logger.info(kwargs)
        res = requests.request(**kwargs)
        # 打印输出参数
        logger.info(res)
        return res